package com.tianyu.model.enums;

import lombok.Getter;

/**********************************
 * @Author YSW
 * @Description 接口返回枚举类型
 * @Date 2021/1/7 - 11:55
 **********************************/

@Getter
public enum Ro2State {

    SUCCESS(200, "操作成功"),
    DEVICE_NOT_EXIST(209, "设备不存在"),
    INVALID_SIGNATURE(400, "签名无效"),
    UNAUTHORIZED(401, "未授权"),
    AUTHORIZATION_HAS_EXPIRED(403, "授权已过期"),
    SYS_SERVER_ERROR(500, "操作失败，内部"),
    FAILED(501, "操作失败");

    private final int value;
    private final String message;

    Ro2State(int value, String message) {
        this.value = value;
        this.message = message;
    }
}
